public class Test5 {
    //ch01示例6
    public static void main(String[] args) {
        try {
            Class clz=Class.forName("Person");
            Object obj=clz.newInstance();
            System.out.println(obj);
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } finally {

        }
    }
}
